package org.example.biz;

import org.example.oa.entity.ClaimVoucher;
import org.example.oa.entity.ClaimVoucherItem;
import org.example.oa.entity.DealRecord;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 业务层，调用dao层ClaimVoucherDao进行增删改查
 */
public interface ClaimVoucherBiz {

    //保存报销单
    void save(ClaimVoucher claimVoucher, List<ClaimVoucherItem> list);
    //查询报销单
    ClaimVoucher get(int id);
    //查询报销单条目,传入报销单编号
    List<ClaimVoucherItem> getItems(int cvid);
    //查询报销单审核记录
    List<DealRecord> getRecords(int cvid);
    //获取个人报销单
    List<ClaimVoucher> getForSelf(String sn);
    //获取个人待处理报销单
    List<ClaimVoucher> getForDeal(String sn);
    //修改报销单
    void update(ClaimVoucher claimVoucher, List<ClaimVoucherItem> items);
    //提交
    void submit(int id);
    //审核处理报销单
    void deal(DealRecord dealRecord);

}
